; Music of Milk Race (1987) (Mastertronic) (David Whittaker)
; Ripped by Megachur the 22/10/2006

	write "MILKRACE.BIN"

music_date_rip	equ &16a6
music_adr	equ &7200
first_theme	equ 0
last_theme	equ 2

	read "music_header_v1_0.asm"
	
	jp l720e	; init
	jp l72c8	; play
	jp l73ab	; stop
; sound effects
	jp l7748
.l720c
.music_end
	db #00
.l720d
	db #00
;
.init_music
.l720e
;
	ex af,af'
	xor a
	ld (l720c),a
	ld (l720d),a
	ex af,af'
	ld c,a
	add a
	add c
	add a
	add c
	ld c,a
	ld b,#00
	ld hl,l7983
	add hl,bc
	ld a,(hl)
	ld (l72f7),a
	inc hl
	ld ix,l7267
	ld c,#20
	ld a,#03
.l7230
	ld e,(hl)
	inc hl
	ld d,(hl)
	inc hl
	push hl
	ld (ix+#10),#01
	ld (ix+#00),b
	ld (ix+#1d),b
	ld (ix+#03),e
	ld (ix+#04),d
	ex de,hl
	ld e,(hl)
	inc hl
	ld d,(hl)
	ld (ix+#05),#02
	ld (ix+#06),b
	pop hl
	ld (ix+#01),e
	ld (ix+#02),d
	add ix,bc
	dec a
	jr nz,l7230
	ld (l757d),a
	inc a
	ld (l72c7),a
	ld (l720c),a
	ret

.l7267
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#09
.l7287
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#12
.l72a7
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#24
.l72c7
	db #00
;
.play_music
.l72c8
;
	call l779c
	ld a,(l720c)
	or a
	jp z,l7324
.l72d3 equ $ + 1
	ld a,#00
	ld (l7320),a
	ld hl,l72c7
	dec (hl)
	jr nz,l72f8
	ld b,(hl)
	ld ix,l7267
	call l7493
	ld ix,l7287
	call l7493
	ld ix,l72a7
	call l7493
	ld hl,l72c7
.l72f7 equ $ + 1
	ld (hl),#01
.l72f8
	ld ix,l7267
	call l7531
	ld (l7640),hl
	ld (l7648),a
	ld ix,l7287
	call l7531
	ld (l7642),hl
	ld (l7649),a
	ld ix,l72a7
	call l7531
	ld (l7644),hl
	ld (l764a),a
.l7320 equ $ + 1
	ld a,#00
	ld (l7646),a
.l7324
	ld a,(l720d)
	or a
	jr z,l7354
	ld hl,(l764d)
	ld (l7640),hl
	ld hl,(l7651)
	ld (l7644),hl
	ld a,(l7653)
	ld (l7646),a
	ld a,(l7647)
;.l7340 equ $ + 1
	or #2d
	ld hl,l7654
	and (hl)
	ld (l7647),a
	ld a,(l7655)
	ld (l7648),a
	ld a,(l7657)
	ld (l764a),a
.l7354
	ld a,(l720c)
	or a
	ld hl,l720d
	or (hl)
	ret z
	ld hl,l764b
	ld d,#0b
.l7362
	ld e,(hl)
	ld b,#f4
	out (c),d
	ld bc,#f600
	out (c),c
	ld a,#c0
	out (c),a
	out (c),c
	ld b,#f4
	out (c),e
	ld b,#f6
	add a
	out (c),a
	out (c),c
	dec hl
	dec d
	jp p,l7362
	ret
.l7383
	ld de,#0d00
.l7386
	call l7390
	dec d
	jp p,l7386
	ld de,#073f
.l7390
	ld b,#f4
	out (c),d
	ld bc,#f600
	out (c),c
	ld a,#c0
	out (c),a
	out (c),c
	ld b,#f4
	out (c),e
	ld b,#f6
	add a
	out (c),a
	out (c),c
	ret
;
.stop_music
.l73ab
;
	xor a
	ld (l720c),a
	ld (l720d),a
	call l7383
	xor a
	ld (l7648),a
	ld (l7649),a
	ld (l764a),a
	ret
;
.jumps_table
;
	db l748a-$	;#ca
	db l7473-$	;#b2
	db l7478-$	;#b6
	db l747e-$	;#bb
	db l743d-$	;#79
	db l746d-$	;#a8
	db l7469-$	;#a3
	db l73d7-$	;#10
	db l745a-$	;#92
	db l7453-$	;#8a
	db l7419-$	;#4f
	db l7404-$	;#39
	db l742d-$	;#61
	db l7484-$	;#b7
	db l73cf-$	;#01
.l73cf
	xor a
	ld (l720c),a
	pop hl
	jp l73ab
.l73d7
	ld c,(ix+#05)
	ld b,(ix+#06)
	ld l,(ix+#03)
	ld h,(ix+#04)
	add hl,bc
	inc bc
	inc bc
	ld a,(hl)
	inc hl
	ld d,(hl)
	ld e,a
	or d
	jr nz,l73f9
	ld l,(ix+#03)
	ld h,(ix+#04)
	ld bc,#0002
	ld e,(hl)
	inc hl
	ld d,(hl)
.l73f9
	ld (ix+#05),c
	ld (ix+#06),b
	ld b,#00
	jp l74a1
.l7404
	ld a,(ix+#1f)
	ld c,a
	and #07
	ld hl,l7625
	xor (hl)
	and c
	xor (hl)
	ld (hl),a
	ld a,#01
	ld (ix+#1e),a
	jp l74a1
.l7419
	ld a,(ix+#1f)
	ld c,a
	and #38
	ld hl,l7625
	xor (hl)
	and c
	xor (hl)
	ld (hl),a
	xor a
	ld (ix+#1e),a
	jp l74a1
.l742d
	ld hl,l7625
	ld a,(ix+#1f)
	cpl
	and (hl)
	ld (hl),a
	ld a,#01
	ld (ix+#1e),a
	jr l74a1
.l743d
	ld a,(de)
	inc de
	ld (ix+#07),b
	ld (ix+#08),b
	ld (ix+#0d),a
	set 2,(ix+#00)
	ld a,(de)
	ld (ix+#0e),a
	inc de
	jr l74a1
.l7453
	ld a,(de)
	inc de
	ld (l757d),a
	jr l74a1
.l745a
	ld a,(de)
	ld (ix+#1b),a
	inc de
	ld a,(de)
	ld (ix+#1a),a
	inc de
	ld (ix+#1c),a
	jr l74a1
.l7469
	set 7,(ix+#00)
.l746d
	set 3,(ix+#00)
	jr l74a1
.l7473
	ld (ix+#1d),b
	jr l74a1
.l7478
	ld (ix+#1d),#40
	jr l74a1
.l747e
	ld (ix+#1d),#c0
	jr l74a1
.l7484
	set 1,(ix+#00)
	jr l74a1
.l748a
	ld (ix+#13),b
	res 5,(ix+#00)
	jr l74cd
.l7493
	dec (ix+#10)
	jr nz,l74da
	ld (ix+#00),b
	ld e,(ix+#01)
	ld d,(ix+#02)
.l74a1
	ld a,(de)
	inc de
	and a
	jp m,l74eb
	ld (ix+#12),a
	bit 0,(ix+#1e)
	jr z,l74b3
	ld (l72d3),a
.l74b3
	ld a,(ix+#19)
	ld (ix+#13),a
	set 5,(ix+#00)
	set 6,(ix+#00)
	ld a,(ix+#14)
	ld (ix+#16),a
	ld a,(ix+#17)
	ld (ix+#18),a
.l74cd
	ld a,(ix+#11)
	ld (ix+#10),a
	ld (ix+#02),d
	ld (ix+#01),e
	ret
.l74da
	ld a,(ix+#00)
	bit 3,a
	ret z
	rla
	jr nc,l74e7
	inc (ix+#12)
	ret
.l74e7
	dec (ix+#12)
	ret
.l74eb
	cp #c0
	jr c,l7529
	add #20
	jr c,l750e
	add #10
	jr c,l7514
	add #10
	ld c,a
	ld hl,l7701
	add hl,bc
	ld c,(hl)
	add hl,bc
	ld (ix+#0b),l
	ld (ix+#09),l
	ld (ix+#0c),h
	ld (ix+#0a),h
	jr l74a1
.l750e
	inc a
	ld (ix+#11),a
	jr l74a1
.l7514
	ld (ix+#19),a
	ld a,(de)
	inc de
	ld (ix+#14),a
	ld a,(de)
	inc de
	ld (ix+#15),a
	ld a,(de)
	inc de
	ld (ix+#17),a
	jp l74a1
.l7529
	ld hl,jumps_table-&80	;l7340
	ld c,a
	add hl,bc
	ld c,(hl)
	add hl,bc
	jp (hl)
.l7531
	ld c,(ix+#00)
	bit 5,c
	jr z,l757c
	ld a,(ix+#16)
	sub #10
	jr nc,l7564
	bit 6,c
	jr z,l7569
	add (ix+#13)
	jr nc,l7549
	sbc a
.l7549
	add #10
	ld (ix+#13),a
	ld a,(ix+#18)
	sub #10
	jr nc,l755f
	res 6,c
	ld a,(ix+#15)
	ld (ix+#16),a
	jr l757c
.l755f
	ld (ix+#18),a
	jr l757c
.l7564
	ld (ix+#16),a
	jr l757c
.l7569
	cpl
	sub #0f
	add (ix+#13)
	jr c,l7572
	sub a
.l7572
	ld (ix+#13),a
	dec (ix+#18)
	jr nz,l757c
	res 5,c
.l757d equ $ + 1
.l757c
	ld a,#00
	add (ix+#12)
	ld b,a
	ld l,(ix+#0b)
	ld h,(ix+#0c)
	ld a,(hl)
	cp #87
	jr c,l7594
	ld l,(ix+#09)
	ld h,(ix+#0a)
	ld a,(hl)
.l7594
	inc hl
	ld (ix+#0b),l
	ld (ix+#0c),h
	add b
	ld hl,l7641
	ld d,#00
	add a
	ld e,a
	add hl,de
	ld e,(hl)
	inc hl
	ld d,(hl)
	ld l,(ix+#1d)
	bit 6,l
	jr z,l75f6
	ld h,a
	ld b,(ix+#1a)
	sla b
	bit 7,l
	ld a,(ix+#1c)
	jr z,l75bf
	bit 0,c
	jr nz,l75dd
.l75bf
	bit 5,l
	jr nz,l75cf
	sub (ix+#1b)
	jr nc,l75da
	set 5,(ix+#1d)
	sub a
	jr l75da
.l75cf
	add (ix+#1b)
	cp b
	jr c,l75da
	res 5,(ix+#1d)
	ld a,b
.l75da
	ld (ix+#1c),a
.l75dd
	ex de,hl
	srl b
	sub b
	ld e,a
	ld a,d
	ld d,#00
	jr nc,l75e8
	dec d
.l75e8
	add #a0
	jr c,l75f4
.l75ec
	sla e
	rl d
	add #18
	jr nc,l75ec
.l75f4
	add hl,de
	ex de,hl
.l75f6
	ld a,c
	xor #01
	ld (ix+#00),a
	bit 2,c
	jr z,l7621
	ld b,(ix+#0e)
	djnz l761e
	ld c,(ix+#0d)
	bit 7,c
	jr z,l760d
	dec b
.l760d
	ld l,(ix+#07)
	ld h,(ix+#08)
	add hl,bc
	ld (ix+#07),l
	ld (ix+#08),h
	add hl,de
	ex de,hl
	jr l7621
.l761e
	ld (ix+#0e),b
.l7621
	cpl
	and #03
.l7625 equ $ + 1
	ld a,#38
	jr nz,l7632
	ld a,(l72d3)
	xor #08
	ld (l7320),a
	ld a,#07
.l7632
	ld hl,l7647
	xor (hl)
	and (ix+#1f)
	xor (hl)
	ld (hl),a
	ex de,hl
	ld a,(ix+#13)
	ret
.l7647 equ $ + 7
.l7646 equ $ + 6
.l7644 equ $ + 4
.l7642 equ $ + 2
.l7641 equ $ + 1
.l7640
	db #00,#00,#00,#00,#00,#00,#00,#3f
.l764e equ $ + 6
.l764d equ $ + 5
.l764b equ $ + 3
.l764a equ $ + 2
.l7649 equ $ + 1
.l7648
	db #0f,#0f,#0f,#00,#00,#00,#00,#00
.l7657 equ $ + 7
.l7655 equ $ + 5
.l7654 equ $ + 4
.l7653 equ $ + 3
.l7651 equ $ + 1
	db #00,#00,#00,#00,#3f,#10,#00,#10
	db #00
;
; frequency table
;
	dw #077c,#0708,#06b0,#0640
	dw #05ec,#0594,#0544,#04f8
	dw #04b0,#0470,#042c,#03f0
	dw #03be,#0384,#0358,#0320
	dw #02f6,#02ca,#02a2,#027c
	dw #0258,#0238,#0216,#01f8
	dw #01df,#01c2,#01ac,#0190
	dw #017b,#0165,#0151,#013e
	dw #012c,#011c,#010b,#00fc
	dw #00ef,#00e1,#00d6,#00c8
	dw #00bd,#00b2,#00a8,#009f
	dw #0096,#008e,#0085,#007e
	dw #0077,#0070,#006b,#0064
	dw #005e,#0059,#0054,#004f
	dw #004b,#0047,#0042,#003f
	dw #003b,#0038,#0035,#0032
	dw #002f,#002c,#002a,#0027
	dw #0025,#0023,#0021,#001f
	dw #001d,#001c,#001a,#0019
	dw #0017,#0016,#0015,#0013
	dw #0012,#0011,#0010,#000f
.l7701
	db #0f,#10,#13,#16,#19,#1d,#20,#23
	db #26,#29,#2b,#2d,#2f,#31,#33,#00
	db #87,#00,#03,#07,#87,#00,#04,#07
	db #87,#00,#02,#07,#87,#00,#04,#07
	db #0c,#87,#07,#0c,#0f,#87,#07,#0c
	db #10,#87,#03,#07,#0c,#87,#04,#07
	db #0c,#87,#00,#0c,#87,#00,#03,#87
	db #00,#04,#87,#00,#05,#87,#00,#07
	db #87,#00,#00,#00,#00,#0c,#87
.l7748
	ld hl,l720d
	ld (hl),#00
	ld hl,l7834
	add a
	add l
	ld l,a
	jr nc,l7756
	inc h
.l7756
	ld e,(hl)
	inc hl
	ld d,(hl)
	ld b,#11
	ld hl,l7951
.l775e
	ld a,(de)
	ld (hl),a
	inc hl
	inc de
	djnz l775e
	ld a,(l7952)
	ld (l7962),a
	ld hl,(l7953)
	ld (l764d),hl
	ld de,(l7955)
	ld (l7651),de
	ld a,l
	ld (l7653),a
	ld a,(l7958)
	ld (l7654),a
	ld e,a
	ld d,#0c
	call l7390
	ld a,(l7961)
	ld e,a
	ld d,#0d
	call l7390
	ld hl,l720d
	inc (hl)
	ret
.l7796
	ld (l720d),a
	jp l7383
.l779c
	call l7964
	ld a,(l720d)
	or a
	ret z
	ld a,(l7951)
	or a
	jr z,l7796
	dec a
	ld (l7951),a
	ld a,(l7962)
	or a
	jr nz,l77e3
	ld a,(l795f)
	or a
	ret z
	dec a
	ld (l795f),a
	ld a,(l7952)
	ld (l7962),a
	ld a,(l7960)
	or a
	jr z,l77cc
	ld a,(l797f)
.l77cc
	ld b,a
	ld a,(l7953)
	add b
	ld (l764d),a
	ld a,(l7954)
	add b
	and #0f
	ld (l764e),a
	ld hl,(l7955)
	ld (l7651),hl
.l77e3
	ld hl,l7962
	dec (hl)
	ld a,(l795d)
	or a
	jr z,l780a
	jp p,l77fd
	ld hl,(l764d)
	ld de,(l7959)
	add hl,de
	ld (l764d),hl
	jr l780a
.l77fd
	ld hl,(l764d)
	ld de,(l7959)
	or a
	sbc hl,de
	ld (l764d),hl
.l780a
	ld a,(l795e)
	or a
	jr z,l782d
	jp p,l7820
	ld hl,(l7651)
	ld de,(l795b)
	add hl,de
	ld (l7651),hl
	jr l782d
.l7820
	ld hl,(l7651)
	ld de,(l795b)
	or a
	sbc hl,de
	ld (l7651),hl
.l782d
	ld a,(l764d)
	ld (l7653),a
	ret
.l7834
	dw l7852,l7863,l7874,l7885
	dw l7896,l78a7,l78b8,l78c9
	dw l78da,l78eb,l78fc,l790d
	dw l791e,l792f,l7940
l7852
	db #14,#14,#88,#00,#a0,#00,#28,#fa
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00
l7863
	db #06,#06,#e0,#00,#08,#01,#28,#d7
	db #08,#00,#0a,#00,#ff,#ff,#0a,#00
	db #00
l7874
	db #19,#07,#00,#04,#10,#04,#0f,#fa
	db #98,#00,#98,#00,#ff,#ff,#05,#00
	db #00
l7885
	db #19,#07,#80,#04,#90,#04,#0f,#fa
	db #98,#00,#98,#00,#ff,#ff,#05,#00
	db #00
l7896
	db #50,#06,#8a,#02,#60,#02,#0d,#fa
	db #40,#00,#40,#00,#01,#01,#0f,#01
	db #0e
l78a7
	db #50,#06,#0a,#02,#00,#02,#0d,#fa
	db #40,#00,#40,#00,#01,#01,#0f,#01
	db #0e
l78b8
	db #23,#07,#c0,#01,#80,#03,#14,#fa
	db #20,#00,#18,#00,#01,#01,#3c,#00
	db #00
l78c9
	db #2d,#0a,#08,#00,#0b,#00,#0f,#fa
	db #08,#00,#08,#00,#ff,#ff,#0a,#00
	db #00
l78da
	db #3c,#14,#20,#00,#47,#00,#1e,#fa
	db #01,#04,#01,#04,#01,#01,#ff,#00
	db #00
l78eb
	db #1e,#1f,#0f,#02,#0f,#02,#05,#d7
	db #00,#00,#00,#00,#01,#01,#00,#00
	db #0e
l78fc
	db #32,#0a,#0a,#00,#0f,#00,#23,#d2
	db #03,#00,#04,#00,#ff,#01,#0a,#01
	db #00
l790d
	db #32,#1a,#b8,#00,#98,#00,#1e,#fa
	db #03,#00,#04,#00,#01,#01,#03,#00
	db #00
l791e
	db #32,#12,#00,#02,#05,#01,#1e,#fa
	db #20,#00,#10,#00,#01,#01,#0a,#00
	db #00
l792f
	db #3c,#0d,#80,#00,#10,#02,#1e,#fa
	db #06,#00,#14,#00,#01,#01,#ff,#00
	db #00
l7940
	db #0a,#05,#0a,#01,#17,#01,#09,#fa
	db #1f,#00,#1c,#00,#ff,#ff,#05,#00
	db #00
.l7951
	db #00
.l7952
	db #00
.l7953
	db #00
.l795b equ $ + 7
.l7959 equ $ + 5
.l7958 equ $ + 4
.l7955 equ $ + 1
.l7954
	db #00,#00,#00,#00,#00,#00,#00,#00
.l7962 equ $ + 6
.l7961 equ $ + 5
.l7960 equ $ + 4
.l795f equ $ + 3
.l795e equ $ + 2
.l795d equ $ + 1
	db #00,#00,#00,#00,#00,#00,#00,#00
.l7964
	ld a,(l797f)
	and #48
	adc #38
	sla a
	sla a
	ld hl,l7982
	rl (hl)
	dec hl
	rl (hl)
	dec hl
	rl (hl)
	dec hl
	rl (hl)
	ld a,(hl)
	ret
.l797f
	db #ff,#80
.l7982 equ $ +1
	db #1b,#34
.l7983
	db #05
	dw l7998,l79ac,l79c2
	db #05
	dw l7db4,l7df6,l7e1c
	db #05
	dw l7f97,l7f9b,l7f9f
.l7998
	dw l7a0e,l7a2f,l7a2f,l7a66
	dw l7a2f,l7a66,l7a91,l7a91
	dw l7aa5,l7db0
.l79ac
	dw l7ab7,l7ad0
	dw l7ad0,l7ad0,l7ae3,l7ad0
	dw l7ae3,l7af6,l7af6,l7b0a
	dw &0000
.l79c2
	dw l7b17,l7b17,l7b17,l7b17
	dw l7b42,l7b42,l7b17,l7b17
	dw l7b6d,l7b6d,l7b98,l7b98
	dw l7bc3,l7bc3,l7da4,l7b42
	dw l7b42,l7da1,l7db1,l7db1
	dw l7db1,l7db1,l7bee,l7bee
	dw l7bee,l7bee,l7bee,l7bee
	dw l7cca,l7cca,l7bee,l7bee
	dw l7cca,l7cca,l7bee,l7bee
	dw l7d93,&0000
.l7a0e
	db #d9,#22,#11,#34,#c0,#88,#01,#02
	db #82,#ff,#37,#32,#37,#32,#35,#30
	db #37,#32,#3a,#35,#3c,#37,#3f,#3a
	db #35,#30,#3e,#3e,#3e,#3e,#3e,#3e
	db #87
.l7a2f
	db #df,#00,#11,#04,#c0,#88,#02,#04
	db #82,#e1,#35,#37,#32,#e7,#35,#e1
	db #32,#35,#34,#35,#e9,#37,#e5,#3a
	db #39,#e3,#35,#e5,#37,#34,#e1,#35
	db #eb,#32,#e1,#35,#37,#eb,#32,#e1
	db #35,#e3,#37,#e5,#3a,#39,#e3,#35
	db #e5,#37,#34,#e1,#35,#32,#87
.l7a66
	db #df,#00,#11,#04,#c0,#88,#02,#04
	db #82,#ff,#37,#e1,#35,#37,#32,#e7
	db #35,#e1,#32,#35,#32,#35,#e9,#37
	db #ff,#37,#e1,#35,#37,#32,#e7,#35
	db #e1,#32,#e3,#37,#39,#e1,#37,#35
	db #e3,#32,#87
.l7a91
	db #df,#00,#11,#04,#c0,#88,#02,#04
	db #82,#e3,#32,#35,#f7,#37,#e3,#32
	db #35,#f7,#37,#87
.l7aa5
	db #df,#00,#11,#04,#c0,#88,#02,#04
	db #82,#e1,#35,#37,#32,#f9,#35,#ff
	db #37,#87
.l7ab7
	db #de,#00,#11,#04,#c5,#ff,#26,#26
	db #26,#26,#24,#24,#26,#26,#29,#29
	db #2b,#2b,#2e,#2e,#30,#30,#26,#26
	db #87
.l7ad0
	db #dd,#00,#11,#04,#c9,#ef,#32,#35
	db #3a,#30,#32,#35,#3a,#30,#d0,#00
	db #00,#00,#87
.l7ae3
	db #dc,#11,#11,#14,#c6,#ef,#37,#3a
	db #3c,#3e,#37,#3a,#3c,#3e,#d0,#00
	db #00,#00,#87
.l7af6
	db #db,#21,#11,#24,#c0,#e0,#80,#e3
	db #32,#35,#f6,#37,#e0,#80,#e3,#32
	db #35,#f6,#37,#87
.l7b0a
	db #df,#00,#11,#04,#c0,#88,#02,#04
	db #82,#ff,#37,#32,#87
.l7b17
	db #df,#00,#11,#04,#c0,#88,#01,#02
	db #82,#e0,#1a,#80,#1a,#80,#1a,#80
	db #1a,#80,#1a,#80,#1a,#80,#1a,#80
	db #1a,#80,#1a,#80,#1a,#80,#1a,#80
	db #1a,#80,#1a,#80,#1a,#80,#1a,#80
	db #1a,#80,#87
.l7b42
	db #df,#00,#11,#04,#c0,#88,#01,#02
	db #82,#e0,#18,#80,#18,#80,#18,#80
	db #18,#80,#18,#80,#18,#80,#18,#80
	db #18,#80,#18,#80,#18,#80,#18,#80
	db #18,#80,#18,#80,#18,#80,#18,#80
	db #18,#80,#87
.l7b6d
	db #df,#00,#11,#04,#c0,#88,#01,#02
	db #82,#e0,#1d,#80,#1d,#80,#1d,#80
	db #1d,#80,#1d,#80,#1d,#80,#1d,#80
	db #1d,#80,#1d,#80,#1d,#80,#1d,#80
	db #1d,#80,#1d,#80,#1d,#80,#1d,#80
	db #1d,#80,#87
.l7b98
	db #df,#00,#11,#04,#c0,#88,#01,#02
	db #82,#e0,#1f,#80,#1f,#80,#1f,#80
	db #1f,#80,#1f,#80,#1f,#80,#1f,#80
	db #1f,#80,#1f,#80,#1f,#80,#1f,#80
	db #1f,#80,#1f,#80,#1f,#80,#1f,#80
	db #1f,#80,#87
.l7bc3
	db #df,#00,#11,#04,#c0,#88,#01,#02
	db #82,#e0,#22,#80,#22,#80,#22,#80
	db #22,#80,#22,#80,#22,#80,#22,#80
	db #22,#80,#22,#80,#22,#80,#22,#80
	db #22,#80,#22,#80,#22,#80,#22,#80
	db #22,#80,#87
.l7bee
	db #df,#00,#11,#04,#c0,#8a,#88,#01
	db #02,#82,#e0,#1a,#80,#1a,#80,#de
	db #00,#11,#0a,#81,#85,#8b,#8d,#e0
	db #27,#df,#00,#11,#04,#c0,#8a,#e0
	db #1a,#80,#1a,#1a,#e2,#80,#de,#00
	db #11,#0a,#81,#85,#8b,#8d,#e1,#27
	db #df,#00,#11,#04,#c0,#8a,#88,#01
	db #02,#82,#e0,#1f,#21,#e0,#18,#80
	db #18,#80,#de,#00,#11,#0a,#81,#85
	db #8b,#8d,#e0,#27,#df,#00,#11,#04
	db #c0,#8a,#e0,#18,#80,#18,#18,#e2
	db #80,#de,#00,#11,#0a,#81,#85,#8b
	db #8d,#e1,#27,#df,#00,#11,#04,#c0
	db #8a,#88,#01,#02,#82,#e0,#1d,#1f
	db #e0,#22,#80,#22,#80,#de,#00,#11
	db #0a,#81,#85,#8b,#8d,#e0,#27,#df
	db #00,#11,#04,#c0,#8a,#e0,#22,#80
	db #22,#22,#e2,#80,#de,#00,#11,#0a
	db #81,#85,#8b,#8d,#e1,#27,#df,#00
	db #11,#04,#c0,#8a,#88,#01,#02,#82
	db #e0,#27,#29,#e0,#24,#80,#24,#80
	db #de,#00,#11,#0a,#81,#85,#8b,#8d
	db #e0,#27,#df,#00,#11,#04,#c0,#8a
	db #e0,#24,#80,#24,#24,#80,#dc,#00
	db #11,#0a,#81,#e1,#84,#64,#01,#30
	db #85,#8b,#8d,#27,#de,#00,#11,#0a
	db #8a,#c0,#e0,#84,#64,#01,#2b,#84
	db #64,#01,#24,#87
.l7cca
	db #df,#00,#11,#04,#c0,#8a,#88,#01
	db #02,#82,#e0,#1f,#80,#1f,#80,#de
	db #00,#11,#0a,#81,#85,#8b,#8d,#e0
	db #27,#df,#00,#11,#04,#c0,#8a,#e0
	db #1f,#80,#1f,#1f,#e2,#80,#de,#00
	db #11,#0a,#81,#85,#8b,#8d,#e1,#27
	db #df,#00,#11,#04,#c0,#8a,#88,#01
	db #02,#82,#e0,#24,#26,#22,#80,#22
	db #80,#de,#00,#11,#0a,#81,#85,#8b
	db #8d,#e0,#27,#df,#00,#11,#04,#c0
	db #8a,#e0,#22,#80,#22,#22,#e2,#80
	db #de,#00,#11,#0a,#81,#85,#8b,#8d
	db #e1,#27,#df,#00,#11,#04,#c0,#8a
	db #88,#01,#02,#82,#e0,#27,#29,#24
	db #80,#24,#80,#de,#00,#11,#0a,#81
	db #85,#8b,#8d,#e0,#27,#df,#00,#11
	db #04,#c0,#8a,#e0,#24,#80,#24,#24
	db #e2,#80,#de,#00,#11,#0a,#81,#85
	db #8b,#8d,#e1,#27,#df,#00,#11,#04
	db #c0,#8a,#88,#01,#02,#82,#e0,#29
	db #2b,#26,#80,#26,#80,#de,#00,#11
	db #0a,#81,#85,#8b,#8d,#e0,#27,#df
	db #00,#11,#04,#c0,#8a,#e0,#26,#80
	db #26,#26,#80,#e1,#84,#0c,#01,#37
	db #84,#0c,#01,#3e,#84,#0c,#01,#39
	db #87
.l7d93
	db #df,#00,#11,#04,#8a,#c0,#88,#02
	db #04,#82,#ff,#26,#1f,#87
.l7da1
	db #89,#00,#87
.l7da4
	db #89,#0c,#87
.l7da7
	db #89,#0a,#87
.l7daa
	db #89,#07,#87
.l7dad
	db #89,#05,#87
.l7db1	equ $ +1
.l7db0
	db #8e,#ef,#80,#87
.l7db4
	dw l7db1,l7db1,l7db1,l7db1
	dw l7db1,l7db1,l7db1,l7db1
	dw l7e2c,l7e2c,l7e4e,l7e65
	dw l7db1,l7db1,l7db1,l7db1
	dw l7db1,l7db1,l7db1,l7db1
	dw l7e2c,l7e7c,l7e4e,l7e65
	dw l7db1,l7db1,l7db1,l7db1
	dw l7db1,l7db1,l7db1,l7db1
	dw &0000
.l7df6
	dw l7e9c,l7e9c,l7e9c
	dw l7e9c,l7f04,l7f04,l7e9c
	dw l7e9c,l7e9c,l7e9c,l7f04
	dw l7f04,l7db1,l7db1,l7f6c
	dw l7db1,l7db1,l7f6c,&0000
.l7e1c
	dw l7f77,l7f77,l7f87,l7f77
	dw l7f77,l7f87,l7f77,&0000
.l7e2c
	db #df,#00,#11,#04,#c0,#8a,#88,#02
	db #04,#82,#e3,#32,#e1,#39,#32,#35
	db #e5,#37,#e1,#39,#37,#35,#e9,#37
	db #e1,#39,#37,#35,#e3,#37,#35,#f1
	db #32,#87
.l7e4e
	db #df,#00,#11,#04,#c0,#8a,#88,#02
	db #04,#82,#e5,#39,#37,#e3,#39,#e5
	db #37,#35,#e3,#37,#ff,#32,#87
.l7e65
	db #df,#00,#11,#04,#c0,#8a,#88,#02
	db #04,#82,#e5,#39,#37,#e3,#39,#e5
	db #37,#35,#e3,#37,#ff,#32,#87
.l7e7c
	db #df,#00,#11,#04,#c0,#8a,#88,#02
	db #04,#82,#e3,#32,#e1,#39,#32,#35
	db #e5,#32,#e1,#39,#37,#35,#e9,#32
	db #e5,#30,#2d,#e3,#30,#ef,#32,#87
.l7e9c
	db #df,#00,#11,#04,#c0,#8a,#88,#02
	db #04,#82,#e1,#1a,#1a,#8b,#8d,#c6
	db #27,#c0,#8a,#e0,#1a,#e1,#1f,#e0
	db #1a,#e1,#1f,#8b,#8d,#c6,#27,#c0
	db #8a,#26,#1f,#1f,#8b,#8d,#c6,#27
	db #c0,#8a,#e0,#1f,#e1,#26,#e0,#1f
	db #e1,#26,#8b,#8d,#c6,#27,#c0,#8a
	db #2b,#18,#18,#8b,#8d,#c6,#27,#c0
	db #8a,#e0,#18,#e1,#1d,#e0,#18,#e1
	db #1d,#8b,#8d,#c6,#27,#c0,#8a,#24
	db #1a,#1a,#8b,#8d,#c6,#27,#c0,#8a
	db #e0,#1a,#e1,#1f,#e0,#1a,#e1,#1f
	db #8b,#8d,#c6,#27,#c0,#8a,#26,#87
.l7f04
	db #df,#00,#11,#04,#c0,#8a,#88,#02
	db #04,#82,#e1,#21,#21,#8b,#8d,#c6
	db #27,#c0,#8a,#e0,#21,#e1,#28,#e0
	db #21,#e1,#28,#8b,#8d,#c6,#27,#c0
	db #8a,#2d,#1f,#1f,#8b,#8d,#c6,#27
	db #c0,#8a,#e0,#1f,#e1,#26,#e0,#1f
	db #e1,#26,#8b,#8d,#c6,#27,#c0,#8a
	db #2b,#1a,#1a,#8b,#8d,#c6,#27,#c0
	db #8a,#e0,#1a,#e1,#1f,#e0,#1a,#e1
	db #1f,#8b,#8d,#c6,#27,#c0,#8a,#26
	db #1a,#1a,#8b,#8d,#c6,#27,#c0,#8a
	db #e0,#1a,#e1,#1f,#e0,#1a,#e1,#1f
	db #8b,#8d,#c6,#27,#c0,#8a,#26,#87
.l7f6c
	db #dc,#11,#11,#34,#c0,#8a,#ef,#85
	db #32,#80,#87
.l7f77
	db #df,#00,#11,#04,#c6,#8a,#ef,#32
	db #37,#3c,#3e,#32,#37,#3c,#3e,#87
.l7f87
	db #de,#11,#11,#16,#c9,#8a,#ef,#39
	db #37,#32,#3e,#39,#37,#32,#3e,#87
.l7f97
	dw l7fa1,l7db0
.l7f9b
	dw l7bee,l7fc7
.l7f9f
	dw l7fd4
.l7fa1
	db #df,#00,#11,#04,#c0,#8a,#88,#02
	db #04,#82,#e1,#35,#37,#32,#e3,#35
	db #e1,#32,#e3,#30,#e1,#32,#30,#32
	db #e3,#30,#e1,#2d,#e3,#2b,#e7,#2d
.l7fc7 equ $ + 6
	db #2b,#29,#28,#e7,#26,#87,#df,#00
	db #11,#04,#c0,#8a,#88,#02,#04,#82
	db #ff,#1a,#87
.l7fd4
	db #dd,#00,#11,#04,#c9,#8a,#88,#02
	db #04,#82,#ef,#32,#35,#3a,#30,#ff
	db #c0,#26,#87

.game_name
	db "Milk Race",0
.game_year
	db "1987",0
.game_publisher
	db "Mastertronic",0
.music_author
	db "David Whittaker",0
.music_comment
	db "",0
	
	read "music_end_v1_0.asm"
